﻿<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>盒老师</title>
    <meta name="keywords" content="盒老师">
    <meta name="content" content="盒老师">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <link type="text/css" rel="stylesheet" href="/content/css/login.css">
    <script type="text/javascript" src="/content/js/jquery.min.js"></script>
    <script>
        $(function() {

        });
        function Save() {
            $.ajax({
                type: "Post",
                url: "/Home/Save",
                data: $("#zhuceform").serialize(),
                beforeSend: function () {
                    $("#saveBtn").off("click");
                },
                success: function (data) {
                    if (data.Success) {
                      alert("注册成功!");
                    } else {
                        alert(data.Message);
                        $("#saveBtn").on("click", Save);
                    }
                },
                error: function (e) {
                    alert("出错了,请稍后再试!");
                    $("#saveBtn").on("click", Save);
                }
            }); 
        }
    </script>
</head>
<body class="login_bj">

    <div class="zhuce_body">
        <div class="logo"><a href="#"><img src="/content/images/logo.png" width="114" height="54" border="0"></a></div>
        <div class="zhuce_kong">
            <div class="zc">
                <div class="bj_bai">
                    <h3>欢迎注册</h3>
                    <form action="" method="get" id="zhuceform">
                        <input name="Name" type="text" class="kuang_txt" placeholder="姓名">
                        <input name="Tel" type="text" class="kuang_txt phone" placeholder="手机号">
                        <input name="Email" type="text" class="kuang_txt email" placeholder="邮箱">
                        <input name="Nickname" type="text" class="kuang_txt email" placeholder="昵称">
                        <input name="PassWord" type="text" class="kuang_txt" placeholder="密码">
                        @*<input name="" type="text" class="kuang_txt possword" placeholder="邀请码">*@
                        @*<input name="" type="text" class="kuang_txt yanzm" placeholder="验证码">*@
                        <div>
                            <div class="hui_kuang"><img src="/content/images/zc_22.jpg" width="92" height="31">
                            </div>
                            <div class="shuaxin"><a href="#"><img src="/content/images/zc_25.jpg" width="13" height="14"></a>
                            </div>
                        </div>
                        <div>
                            <input name="" type="checkbox" value=""><span>已阅读并同意<a href="#" target="_blank"><span class="lan">《XXXXX使用协议》</span></a></span>
                        </div>
                        <input name="注册" type="button" class="btn_zhuce" value="注册" onclick="Save()">

                    </form>
                </div>
                <div class="bj_right">
                    <p>使用以下账号直接登录</p>
                    <a href="#" class="zhuce_qq">QQ注册</a>
                    <a href="#" class="zhuce_wb">微博注册</a>
                    <a href="#" class="zhuce_wx">微信注册</a>
                    <p>已有账号？<a href="login.html">立即登录</a></p>

                </div>
            </div>
            <P>Diyhe.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;欢迎您定制盒子模型  更多模板：<a href="http://www.mycodes.net/" target="_blank">源码之家</a></P>
        </div>

    </div>


</body>
</html>